package game.roles.enemys;

import game.frame.MainFrame;
import game.utils.ImageChange;

import java.awt.*;
import java.util.Random;

/**
 * @author liuyulai
 * 士兵4类，此士兵为从左向右出现
 */
public class Solider4 extends EnemyRole {
    public static Image[] solider4;

    private ImageChange rm = new ImageChange(3);

    public Solider4() {
        super(-150 + new Random().nextInt(50), 400 + new Random().nextInt(100), 80, 80, 150, 10);
    }

    @Override
    public void rolesMove() {
        this.img = rm.change(solider4);
        this.x += 2;
    }
}
